<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title><?= getValInArr(getSess(SESS_DIC), array('webInfo', 'webtitle')) ?></title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <script src="<?php echo base_url() . 'public/home/js/' ?>jquery.js"></script>
    <?php include_once "public/home/html/alert.php"  ?>
    <script type="text/javascript" src="<?php echo base_url() . 'public/home/js/' ?>function.js"></script>
    <script src="<?php echo base_url() . 'public/home/js/' ?>roll.js?v=2023102601"></script>
    <?php include_once "public/home/html/broadcast.php"  ?>
    <link rel="stylesheet" href="<?php echo base_url() . 'public/home/css/' ?>index.css">
    <?php include_once "public/home/html/bootstrap.php";
    include_once "public/home/html/mobile_dialog.php"  ?>
    <style>
        body {
            background-color: #eee;
        }

        #img_size {
            height: 20px;
            width: 20px;
            margin-top: 5px;
            margin-left: 12px;
        }

        .clear {
            clear: both;
        }

        p {
            margin: 0 !important;
        }

        .aui-img-logo img {
            border-radius: 50%
        }
    </style>
</head>

<body>
    <input type="hidden" name="url" value="<?php echo base_url() ?>">
    <!-- <section class="aui-flexView">
            <header class="aui-navBar aui-navBar-fixed">
                <a href="javascript:;" class="aui-navBar-item">
                    <i class="icon icon-return"></i>
                </a>
                <div class="aui-center">
                    <span class="aui-center-title"></span>
                </div>
                <a href="javascript:;" class="aui-navBar-item">
                    <i class="icon icon-set"></i>
                </a>                
            </header>
        </section> -->
    <section class="aui-scrollView" style="margin-top: 1px;height: auto;background: #ffffff;">
        <div class="aui-take-content">
            <div class="aui-take-content-col">
                <div class="aui-img-logo">
                </div>
                <div class="aui-img-text">
                    <h2><?php echo $detail['username'] ?></h2>
                    <p><?php if (isset($detail['class_name'])) {
                            echo $detail['dept_name'] . "," . $detail['class_name'];
                        } else {
                            echo $detail['dept_name'];
                        } ?></p>
                </div>
            </div>
        </div>


        <div class="broadcast" style="height: 30px;width:100%;background: #FFFFFF;margin-top: 10px;margin-bottom:10px ">
            <div id="broadcast_Title">
                <div style="float: left">
                    <img src="<?php echo base_url(); ?>public/home/images/laba.png" alt="" id="img_size">
                </div>
                <div id="broadcast" style="margin-left: 40px"></div>
                <div class='clear'></div>
            </div>
        </div>



        <div class="aui-course-list">
            <a href="<?php echo base_url() . 'Home/Information/Index/';  ?>" class="aui-flex">
                <div class="aui-cou-img">
                    <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-001.png" alt="">
                </div>
                <div class="aui-flex-box">
                    <p>个人信息</p>
                </div>
            </a>
            <!-- <a href="<?php echo base_url() . 'Home/News/Index/';  ?>" class="aui-flex">
                                <div class="aui-cou-img">
                                    <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-002.png ?>" alt="">
                                </div>
                                <div class="aui-flex-box">
                                    <p>我的消息</p>
                                </div>
                            </a> -->
            <?php
            $role = empty($_SESSION[SESS_USER_HOME]['sub_role_id']) ? array() : explode(',', $_SESSION[SESS_USER_HOME]['sub_role_id']);
            array_push($role, $_SESSION[SESS_USER_HOME]['role_id']);
            foreach ($role as $k => $v) :
                if (in_array(WebRole::StudentInfoOfficer[XPHEnum::Value], $role) || in_array(WebRole::UnitStudentInfoOfficer[XPHEnum::Value], $role)) :
            ?>
                    <!-- <div>
                        <a href="<?php echo base_url() . 'Home/Student_feedback/' ?>Index" class="aui-flex">
                            <div class="aui-cou-img">
                                <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-003.png ?>" alt="">
                            </div>
                            <div class="aui-flex-box">
                                <p>信息反馈</p>
                            </div>
                        </a>
                    </div> -->
                    <?php break; ?>
                <?php endif ?>
            <?php endforeach ?>


            <!-- 教师 信息反馈 -->
            <?php
            if (count($role) == 1 && in_array(WebRole::Teacher[XPHEnum::Value], $role)) :
            ?>
                <div>
                    <a href="<?php echo base_url() . 'Home/Attend/' ?>feedback_inf" class="aui-flex">
                        <div class="aui-cou-img">
                            <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-003.png" alt="">
                        </div>
                        <div class="aui-flex-box">
                            <p>信息反馈</p>
                        </div>
                    </a>
                </div>
            <?php endif ?>

            <!-- 课堂教学评价1 -->
            <?php
            if ((!in_array(WebRole::Student[XPHEnum::Value], $role))) :
            ?>
                <div>
                    <div>
                        <a href="<?php echo base_url() . 'Home/Index/evaluation/' ?>" class="aui-flex">
                            <div class="aui-cou-img">
                                <img src="<?php echo base_url() . 'public/home/images/' ?>pingjia.png" alt="">
                            </div>
                            <div class="aui-flex-box">
                                <p>课堂教学评价</p>
                            </div>
                        </a>
                    </div>
                <?php endif ?>

                <!-- 教师 个人被听课统计 -->
                <?php
                if (in_array(WebRole::Teacher[XPHEnum::Value], $role)) :
                ?>
                    <!-- <div>
                    <a href="<?php echo base_url() . 'Home/Attend/' ?>record" class="aui-flex">
                        <div class="aui-cou-img">
                            <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-004.png" alt="">
                        </div>
                        <div class="aui-flex-box">
                            <p>个人被听课统计</p>
                        </div>
                    </a>
                </div> -->
                <?php endif ?>

                <!-- 专业负责人 课堂教学评价 -->
                <?php
                if (in_array(WebRole::MajorUnitLeader[XPHEnum::Value], $role)) :
                ?>
                    <div>
                        <a href="<?php echo base_url() . 'Home/Attend/' ?>major" class="aui-flex">
                            <div class="aui-cou-img">
                                <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-004.png" alt="">
                            </div>
                            <div class="aui-flex-box">
                                <p>专业负责人听课统计</p>
                            </div>
                        </a>
                    </div>
                <?php endif ?>


                <!-- 信息反馈 -->
                <?php
                if ((in_array(WebRole::UnitStudentInfoOfficer[XPHEnum::Value], $role) ||
                        in_array(WebRole::StudentInfoOfficer[XPHEnum::Value], $role) ||
                        in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) ||
                        in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) ||
                        in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) ||
                        in_array(WebRole::Manage[XPHEnum::Value], $role) ||
                        in_array(WebRole::OutsideSupervisor[XPHEnum::Value], $role)) && !in_array(WebRole::SchoolLeader[XPHEnum::Value], $role) && !in_array(WebRole::UnitLeader[XPHEnum::Value], $role)
                ) :
                ?>
                    <div>
                        <div>
                            <a href="<?php echo base_url() . 'Home/Index/back/'  ?>" class="aui-flex">
                                <div class="aui-cou-img">
                                    <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-003.png" alt="">
                                </div>
                                <div class="aui-flex-box">
                                    <p>信息反馈</p>
                                </div>
                            </a>
                        </div>
                    <?php endif ?>




                    <!-- 其他材料提交 -->
                    <?php
                    if (
                        in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) ||
                        in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) ||
                        in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) ||
                        in_array(WebRole::Manage[XPHEnum::Value], $role)
                    ) :
                    ?>
                        <div>
                            <div>
                                <a href="<?php echo base_url() . 'Home/Index/others/' ?>" class="aui-flex">
                                    <div class="aui-cou-img">
                                        <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-0010.png" alt="">
                                    </div>
                                    <div class="aui-flex-box">
                                        <p>其他材料提交</p>
                                    </div>
                                </a>
                            </div>
                        <?php endif ?>


                        <!-- 问卷管理 -->
                        <?php if ((in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) ||
                            in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) ||
                            in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) ||
                            in_array(WebRole::OutsideSupervisor[XPHEnum::Value], $role) ||
                            in_array(WebRole::Manage[XPHEnum::Value], $role)) && !in_array(WebRole::SchoolLeader[XPHEnum::Value], $role) && !in_array(WebRole::UnitLeader[XPHEnum::Value], $role)) : ?>
                            <div>
                                <a href="<?php echo base_url() . 'Home/Question/' ?>Index" class="aui-flex">
                                    <div class="aui-cou-img">
                                        <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-006.png" alt="">
                                    </div>
                                    <div class="aui-flex-box">
                                        <p>问卷管理</p>
                                    </div>
                                </a>
                            </div>
                        <?php endif ?>


                        <!-- 督导工作统计 -->
                        <?php if (in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) || in_array(WebRole::Manage[XPHEnum::Value], $role)) : ?>
                            <div>
                                <a href="<?php echo base_url() . 'Home/Attend/index' ?>" class="aui-flex">
                                    <div class="aui-cou-img">
                                        <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-006.png" alt="">
                                    </div>
                                    <div class="aui-flex-box">
                                        <p>督导工作统计</p>
                                    </div>
                                </a>
                            </div>
                        <?php endif ?>


                        <!-- <?php
                                // $sub_role=explode(',',$_SESSION[SESS_USER_HOME]['sub_role_id']);
                                // array_push($sub_role,$_SESSION[SESS_USER_HOME]['role_id']);
                                // foreach ($sub_role as $k => $v):
                                if (in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) || in_array(WebRole::OutsideSupervisor[XPHEnum::Value], $role)) :
                                ?>
                    <div>
                        <a href="<?php echo base_url() . 'Home/Class_Assess/Index/0' ?>" class="aui-flex">
                            <div class="aui-cou-img">
                                <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-004.png ?>" alt="">
                            </div>
                            <div class="aui-flex-box">
                                <p>督导听课评价</p>
                            </div>
                        </a>
                    </div>
                <?php endif ?> -->

                        <!-- <?php
                                if (
                                    in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role)
                                    || in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) || in_array(WebRole::ExternalSupervisor[XPHEnum::Value], $role)
                                ) : ?>
                <a href="<?php echo base_url() . 'Home/Other/IndexAdd/' ?>" class="aui-flex">
                    <div class="aui-cou-img">
                        <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-0010.png ?>" alt="">
                    </div>
                    <div class="aui-flex-box">
                        <p>其他材料提交</p>
                    </div>
                </a>
                <?php endif ?> -->

                        <!-- <?php if (in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) || in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) || in_array(WebRole::ExternalSupervisor[XPHEnum::Value], $role)) : ?>
                    <div>
                        <a href="<?php echo base_url() . 'Home/Question/' ?>Index" class="aui-flex">
                            <div class="aui-cou-img">
                                <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-006.png?>" alt="">
                            </div>
                            <div class="aui-flex-box">
                                <p>问卷管理</p>
                            </div>
                        </a>
                    </div>
                <?php endif ?> -->
                        <!-- <div class="divHeight"></div>
                <a href="<?php echo base_url() . 'Home/My_feedback/Index/' . $detail['id'];  ?>" class="aui-flex">
                    <div class="aui-cou-img">
                        <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-002.png ?>" alt="">
                    </div>
                    <div class="aui-flex-box">
                        <p>我的反馈</p>
                    </div>
                </a> -->
                        <!-- <?php if (in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) || in_array(WebRole::Manage[XPHEnum::Value], $role)) : ?>
                <div>
                    <a href="<?php echo base_url() . 'Home/My_feedback/Manage' ?>" class="aui-flex">
                        <div class="aui-cou-img">
                            <img src="<?php echo base_url() . 'public/home/images/' ?>feedback.png ?>" alt="">
                        </div>
                        <div class="aui-flex-box">
                            <p>反馈管理</p>
                        </div>
                    </a>
                </div> 
                <?php endif ?> 
                <?php if (in_array(WebRole::StudentInfoOfficer[XPHEnum::Value], $role)) : ?>
                <div>
                    <a href="<?php echo base_url() . 'Home/My_feedback/Student' ?>" class="aui-flex">
                        <div class="aui-cou-img">
                            <img src="<?php echo base_url() . 'public/home/images/' ?>feedback.png ?>" alt="">
                        </div>
                        <div class="aui-flex-box">
                            <p>反馈管理</p>
                        </div>
                    </a>
                </div> 
                <?php endif ?> -->
                        <!-- <?php
                                // $sub_role=explode(',',$_SESSION[SESS_USER_HOME]['sub_role_id']);
                                // array_push($sub_role,$_SESSION[SESS_USER_HOME]['role_id']);
                                // foreach ($sub_role as $k => $v):
                                if (in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) || in_array(WebRole::OutsideSupervisor[XPHEnum::Value], $role)) :
                                ?>
                    <div>
                        <a href="<?php echo base_url() . 'Home/Class_Assess/' ?>SubmittedAssess" class="aui-flex">
                            <div class="aui-cou-img">
                                <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-005.png ?>" alt="">
                            </div>
                            <div class="aui-flex-box">
                                <p>已提交的听课评价</p>
                            </div>
                        </a>
                    </div>
                <?php endif ?> -->

                        <!-- <?php
                                if (in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) || in_array(WebRole::OutsideSupervisor[XPHEnum::Value], $role)) :
                                ?>
                    <div>
                        <a href="<?php echo base_url() . 'Home/Class_Assess/' ?>SaveAssess" class="aui-flex">
                            <div class="aui-cou-img">
                                <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-005.png ?>" alt="">
                            </div>
                            <div class="aui-flex-box">
                                <p>已保存的听课记录</p>
                            </div>
                        </a>
                    </div>
                <?php endif ?> -->

                        <!-- <?php if (in_array(WebRole::SchoolSupervisor[XPHEnum::Value], $role) || in_array(WebRole::UnitSupervisor[XPHEnum::Value], $role) || in_array(WebRole::OutsideSupervisor[XPHEnum::Value], $role) || in_array(WebRole::Admin[XPHEnum::Value], $role)) : ?>
                <a href="<?php echo base_url() . 'Home/Other/Index/' ?>" class="aui-flex">
                    <div class="aui-cou-img">
                        <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-0010.png ?>" alt="">
                    </div>
                    <div class="aui-flex-box">
                        <p>已提交的其他材料</p>
                    </div>
                </a>
                <?php endif ?> -->


                        </div>



                    </div>
    </section>
</body>

</html>